<?php
class EnumDropdown extends Dropdown
{
	function __construct($name, $value, $fieldType)
	{
		parent::__construct($name, $value);
		
		$enumValues = substr($fieldType, 4, strlen($fieldType) - 4);		
		eval('$values = array'.$enumValues.';');
		
		foreach($values as $value)
		{
			$this->addOption($value, $value);
		}
		$this->addAttributes(array('class' => 'numeric'));
	}
}